
package com.springcloud.zuul.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springcloud.zuul.entity.SysRoleMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色与菜单对应关系
 */
@Mapper
public interface SysRoleMenuDao extends BaseMapper<SysRoleMenuEntity> {
	
	/**
	 * Description:根据角色ID，获取菜单ID列表
	 * @author zhlu
	 * @date 2020/1/7 2:48 下午
	 * @param roleList
	 * @return java.util.List<java.lang.String>
	 */
	List<String> queryMenuIdList(@Param("list") List<String> roleList);

	/**
	 * 根据角色ID数组，批量删除
	 */
	int deleteBatch(List<String> roleIds);
}
